# -*- coding: utf-8 -*-
'''
 Source file
 File name: svnutils.py
 Creation date: 08-10-2011
 Author: dassier

'''
from collections import deque

def is_svn(path):
    ''' To know if an URL or a path is manage under SVN
        Return True if 'path' is a SVN one
    '''
    import pysvn

    svn = pysvn.Client()
    try:
        svn.list(path)
    except:
        # 'path' is not manage under SVN
        return False
    else:
        # path is manage under SVN
        return True


